package JEE2;

import javax.servlet.annotation.WebServlet;

@WebServlet(name = "JEE2.Bean", urlPatterns = "/JEE2.Bean")
public class Bean {

    private String
            userName = null, userPsd = null, checkd = null;
    private String[] goods = new String[10];
    private String[] price = new String[10];
    private String[][] data;
    private int count=0, sum=0;



    public String getUserName(){return userName;}
    public String getUserPsd(){return userPsd;}
    public String getCheckd() { return checkd;}
    public String[][] getData() { return data; }
    public String[] getGoods(){return goods;}
//    public String getGoods(int n) { return goods[n]; }
    public String getPrice(int n) { return price[n]; }
    public int getCount() { return count; }
    public int getSum(){return sum;}


    public void setUserName(String userName){this.userName = userName;}
    public void setUserPsd(String userPsd){this.userPsd = userPsd;}
    public void setCheckd(String checkd) { this.checkd = checkd; }
    public void setData(String[][] data) { this.data = data; }
    public void setGoods(String goods) { this.goods[count] = goods; }
    public void setPrice(String price) { this.price[count] = price; }
    public void setCount(int count) { this.count = count; }
    public void setSum(int sum){this.sum = sum;}
}
